package cn.byapps.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import cn.byapps.dao.BookDao;
import cn.byapps.entity.Book;
import cn.byapps.service.BookService;
@Service
@Transactional
public class BookServiceImpl implements BookService {

	@Resource
	private BookDao bookDao;
	@Override
	public Book save(Book book) {
		return bookDao.save(book);
	}
	@Override
	public List<Book> findAll() {
		return bookDao.findAll();
	}

}
